﻿using System;
using System.Collections.Generic;

namespace Models.Models;

/// <summary>
/// 文章
/// </summary>
public partial class SArticle
{
    /// <summary>
    /// 自增id
    /// </summary>
    public uint Id { get; set; }

    /// <summary>
    /// 标题
    /// </summary>
    public string Title { get; set; } = null!;

    /// <summary>
    /// 文章分类
    /// </summary>
    public uint ArticleCategoryId { get; set; }

    /// <summary>
    /// 标题颜色
    /// </summary>
    public string TitleColor { get; set; } = null!;

    /// <summary>
    /// 跳转url地址
    /// </summary>
    public string JumpUrl { get; set; } = null!;

    /// <summary>
    /// 是否启用（0否，1是）
    /// </summary>
    public byte IsEnable { get; set; }

    /// <summary>
    /// 内容
    /// </summary>
    public string? Content { get; set; }

    /// <summary>
    /// 图片数据（一维数组json）
    /// </summary>
    public string? Image { get; set; }

    /// <summary>
    /// 文章图片数量
    /// </summary>
    public byte ImageCount { get; set; }

    /// <summary>
    /// 访问次数
    /// </summary>
    public uint AccessCount { get; set; }

    /// <summary>
    /// 是否首页推荐（0否, 1是）
    /// </summary>
    public byte IsHomeRecommended { get; set; }

    /// <summary>
    /// 添加时间
    /// </summary>
    public uint AddTime { get; set; }

    /// <summary>
    /// 更新时间
    /// </summary>
    public uint UpdTime { get; set; }
}
